﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace imaginecup.Web
{
    public class CPollutedRecord
    {
        private int rid;            //对应数据库中record的id号
        //由于对应每一类的污染，这里还需要重新设计
        
        private double rank_0;      //综合污染值
        private double rank_1;      //大气污染评分
        private double rank_2;      //水污染评分
        private double rank_3;      //土壤污染评分
        private double rank_4;      //噪声污染评分

        private double longtitude;  //经度
        private double latitude;    //纬度

        private DateTime posttime;  //发布时间
        private string name;        //可以是id或者是ip

        private string comments;    //用户留言
        private string images;      //图片名称

        public int Rid
        {
            get { return rid; }
            set { rid = value; }
        }
        
        /// <summary>
        /// 综合污染值
        /// </summary>
        public double Rank_0
        {
            get { return rank_0; }
            set { rank_0 = value; }
        }

        /// <summary>
        /// 大气污染评分
        /// </summary>
        public double Rank_1
        {
            get { return rank_1; }
            set { rank_1 = value; }
        }

        /// <summary>
        /// 水污染评分
        /// </summary>
        public double Rank_2
        {
            get { return rank_2; }
            set { rank_2 = value; }
        }

        /// <summary>
        /// 土壤污染评分
        /// </summary>
        public double Rank_3
        {
            get { return rank_3; }
            set { rank_3 = value; }
        }

        /// <summary>
        /// 噪声污染评分
        /// </summary>
        public double Rank_4
        {
            get { return rank_4; }
            set { rank_4 = value; }
        }

        public double Longtitude
        {
            get { return longtitude; }
            set { longtitude = value;}
        }

        public double Latitude
        {
            get { return latitude; }
            set { latitude = value; }
        }

        public DateTime PostTime
        {
            get { return posttime; }
            set { posttime = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string Comments
        {
            get { return comments; }
            set { comments = value; }
        }

        public string Images
        {
            get { return images; }
            set { images = value; }
        }
    }
}
